<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- linux.qdoc -->
  <title>Qt for Linux/X11 | Qt 5.14</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="index.html">Qt 5.14</a></td><td >Qt for Linux/X11</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.14.2 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#supported-configurations">Supported Configurations</a></li>
<li class="level1"><a href="#requirements-for-development-host">Requirements for Development Host</a></li>
<li class="level1"><a href="#building-qt-5-from-source">Building Qt 5 from Source</a></li>
<li class="level1"><a href="#deployment-and-other-issues">Deployment and Other Issues</a></li>
<li class="level1"><a href="#where-to-go-from-here">Where to Go from Here</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Qt for Linux/X11</h1>
<span class="subtitle"></span>
<!-- $$$linux.html-description -->
<div class="descr"> <a name="details"></a>
<p>Qt's support for different Linux platforms is extensive and mature.</p>
<p>To download and install Qt for Linux, follow the instructions on the <a href="gettingstarted.html">Getting Started with Qt</a> page.</p>
<a name="linux-supported-configurations"></a><a name="supported-configurations"></a>
<h2 id="supported-configurations">Supported Configurations</h2>
<p>The following configurations are supported.</p>
<div class="table"><table class="generic" width="80%">
 <thead><tr class="qt-style"><th >Distribution</th><th >Architecture</th><th >Compiler</th><th >Notes</th></tr></thead>
<tr valign="top" class="odd"><td >openSUSE 15.x</td><td ><code>x86_64</code></td><td ><b>GCC 7</b>, <b>ICC</b></td><td ></td></tr>
<tr valign="top" class="even"><td >SUSE Linux Enterprise Server</td><td ><code>x86_64</code></td><td ><b>GCC 7</b>, GCC 8, ICC 18.x</td><td ></td></tr>
<tr valign="top" class="odd"><td >Red Hat Enterprise Linux 7.x</td><td ><code>x86_64</code></td><td ><b>GCC 5.3&#x2e;1 via devtoolset-4</b></td><td ></td></tr>
<tr valign="top" class="even"><td >Ubuntu 18.04</td><td ><code>x86_64</code></td><td >GCC as provided by Canonical, <b>GCC 7.x or later</b></td><td ></td></tr>
<tr valign="top" class="odd"><td >Generic Linux</td><td ><code>x86</code> and <code>x86_64</code></td><td >GCC (5 or later), ICC 18.x</td><td ></td></tr>
</table></div>
<a name="requirements-for-development-host"></a>
<h2 id="requirements-for-development-host">Requirements for Development Host</h2>
<p>The Qt installers for Linux assume that a C++ compiler, debugger, make, and other development tools are provided by the host operating system. In addition, building graphical Qt applications requires OpenGL libraries and headers installed. Most Linux distributions do not install all of these by default, but setting up a development environment is still straightforward.</p>
<p>Use the following commands to install the basic requirements for building Qt applications:</p>
<a name="debian-ubuntu-apt-get"></a>
<h4 id="debian-ubuntu-apt-get">Debian/Ubuntu (apt-get)</h4>
<pre class="cpp plain">

  sudo apt-get install build-essential libgl1-mesa-dev

</pre>
<a name="fedora-rhel-centos-yum"></a>
<h4 id="fedora-rhel-centos-yum">Fedora/RHEL/CentOS (yum)</h4>
<pre class="cpp plain">

  sudo yum groupinstall &quot;C Development Tools and Libraries&quot;
  sudo yum install mesa-libGL-devel

</pre>
<a name="opensuse-zypper"></a>
<h4 id="opensuse-zypper">openSUSE (zypper)</h4>
<pre class="cpp plain">

  sudo zypper install -t pattern devel_basis

</pre>
<a name="building-qt-5-from-source"></a>
<h2 id="building-qt-5-from-source">Building Qt 5 from Source</h2>
<p>You can also build Qt 5 from the source package and configure it according to your target platform. The source packages are obtained from <a href="http://www.qt.io/download/">http://www.qt.io/download/</a>.</p>
<p>Below, you will find more information about building Qt from source.</p>
<ul>
<li><a href="linux-requirements.html">Qt for X11 Requirements</a></li>
<li><a href="linux-building.html">Qt for Linux/X11 - Building from Source</a></li>
</ul>
<a name="deployment-and-other-issues"></a>
<h2 id="deployment-and-other-issues">Deployment and Other Issues</h2>
<p>The pages below covers specific issues and recommendations for creating Linux/X11 applications.</p>
<ul>
<li><a href="linux-deployment.html">Qt for Linux/X11 - Deployment</a></li>
<li><a href="linux-issues.html">Qt for Linux/X11 - Specific Issues</a></li>
</ul>
<a name="where-to-go-from-here"></a>
<h2 id="where-to-go-from-here">Where to Go from Here</h2>
<p>We invite you to explore the rest of Qt. We prepared overviews which help you decide which APIs to use and our examples demonstrate how to use our API.</p>
<ul>
<li><a href="overviews-main.html">Qt Overviews</a> - list of topics about application development</li>
<li><a href="qtexamplesandtutorials.html">Examples and Tutorials</a> - code samples and tutorials</li>
<li><a href="reference-overview.html">Qt Reference Pages</a> - a listing of C++ and QML APIs</li>
<li><a href="../qtx11extras/qtx11extras-index.html">Qt X11 Extras</a> - provides additional APIs for X11</li>
</ul>
<p>Qt's vibrant and active community site, <a href="http://qt.io">http://qt.io</a> houses a wiki, a forum, and additional learning guides and presentations.</p>
</div>
<!-- @@@linux.html -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2020 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
